@model $prjsn$.Common.Models.ICustomListModel

@this.CreateForm()

@AddControls(
    new Fieldset("w70p mh100 ", Str.Business.Common.Identification)
    {
        new DefinitionList
        {
            new AsyncComboBox().SetSourceProperty(() => Model.Filter.CustomListType).SetComboBoxShowEmpty(true),
            
            new TextOrInput().SetSourceProperty(() => Model.Filter.Code),
            new TextOrInput().SetSourceProperty(() => Model.Filter.Description),

            new AsyncComboBox().SetSourceProperty(() => Model.Filter.Parent).SetComboBoxShowEmpty(true),
            
            new RadioForNullableBool()
                .SetSourceProperty(() => Model.Filter.IsVisible)
                .ShowDescription(true)
                .SetCssClassName(Str.Align.Left),
            
            new TextOrInput(maxLength: 10)
                .SetSourceProperty(() => Model.Filter.IdExact),
        }
    })

@AddControls(
    new AdjustListView
    {
        Type = AdjustListViewType.Fieldset,
        CssClassName = "w70p mh75"
    })

@this.CloseForm()
